﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProyectoPanel.ascx.cs"
 Inherits="UILGestion.Mapa.Main.VentaAdmin.ProyectoPanel" %>

<%@ Register assembly="MapControl" namespace="MapControl" tagprefix="cc1" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />





<script type="text/javascript">


<!--
    function MM_openBrWindow(theURL, winName, features) { //v2.0
        window.open(theURL, winName, features);
    }
    function MM_preloadImages() { //v3.0
        var d = document; if (d.images) {
            if (!d.MM_p) d.MM_p = new Array();
            var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
                if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; }
        }
    }

    function MM_swapImgRestore() { //v3.0
        var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
    }

    function MM_findObj(n, d) { //v4.01
        var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
            d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
        }
        if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
        for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
        if (!x && d.getElementById) x = d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
        var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
            if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
    }
    function MM_showHideLayers() { //v9.0
        var i, p, v, obj, args = MM_showHideLayers.arguments;
        for (i = 0; i < (args.length - 2); i += 3)
            with (document) if (getElementById && ((obj = getElementById(args[i])) != null)) {
                v = args[i + 2];
                if (obj.style) { obj = obj.style; v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden' : v; }
                obj.visibility = v;
            }
    }
//-->
</script>

<script type="text/javascript">
<!--
    function MM_preloadImages() { //v3.0
        var d = document; if (d.images) {
            if (!d.MM_p) d.MM_p = new Array();
            var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
                if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; }
        }
    }
//-->
</script>



    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.maphilight.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.metadata.min.js" type="text/javascript"></script>


<script type='text/javascript'>
  //<![CDATA[
    $(window).load(function () {
        $(function () {
            //using the jquery map highlight plugin:
            //http://davidlynch.org/js/maphilight/docs/

            //initialize highlight
            $('.map').maphilight({ strokeColor: '3366FF', strokeWidth: 0, fillColor: '3366FF' });


            //hover effect
            $('#maplink1').mouseover(function (e) {
                $('#map1').mouseover();
            }).mouseout(function (e) {
                $('#map1').mouseout();
            }).click(function (e) { e.preventDefault(); });


            // initialize tabbing
            $(".tabs area:eq(0)").each(function () {
                $(this).addClass("current");
            });
            //   $(".tab-content").each(function(){
            //       $(this).children(":not(:first)").hide();    
            //   });


            //map clicks
            $(".tabs area").click(function () {

                //This block is what creates highlighting by trigger the "alwaysOn", 
                var data = $(this).data('maphilight') || {};
                data.alwaysOn = !data.alwaysOn;
                $(this).data('maphilight', data).trigger('alwaysOn.maphilight');
                //there is also "neverOn" in the docs, but not sure how to get it to work


                if ($(this).hasClass("current") == false) {
                    var thisTarget = $(this).attr("href");

                    $(this).parents(".tabs").find('area.current').removeClass('current');

                    $(this).addClass('current');

                    $(this).parents(".tabs").nextAll(".tab-content").children(":visible").fadeOut(1, function () {
                        $(thisTarget).fadeIn("fast");
                    });

                }
                return false;
            });
        });
    });
  //]]> 
  </script>




<%--<asp:UpdatePanel runat="server" ID="graficoUPNL" UpdateMode="Conditional">
<ContentTemplate>
	--%>


    <input id="idEtapaSeleccion" type="hidden" runat="server" />
<table  id="principal" border="0" cellspacing="0" cellpadding="0" width="1000px" style="background-color:White">
  <tr>
  <td colspan="2">
  <asp:LinkButton runat="server" ID="proyectoLBTN" Text="Ver Proyecto" ForeColor="Blue"  onclick="LBTN_Click"  />  ==>
  <asp:LinkButton runat="server" ID="etapaLBTN" Text="" ForeColor="Blue" onclick="LBTN_Click"  />  </td>
  
  </tr>
  <tr>
    <td valign="top" rowspan="3"  align="center"  valign="middle">

   
<map id="ProyectoPanel11$usa_image__MAP" name="ProyectoPanel11$usa_image__MAP" class="tabs">
	<area shape="POLY" coords="441,91,482,93,480,171,528,171,529,100,572,102,570,214,438,213" alt="LOS ALAMOS" href="#" onclick="javascript:__IMAGEMAP_onClick(0);" />
	<area shape="POLY" coords="" alt="LOS FICUS" href="#" onclick="javascript:__IMAGEMAP_onClick(1);" />
	<area shape="POLY" coords="" alt="ETAPA 03" href="#" onclick="javascript:__IMAGEMAP_onClick(2);" />
	<area shape="POLY" coords="" alt="ETAPA 04" href="#" onclick="javascript:__IMAGEMAP_onClick(3);" />
	<area shape="POLY" coords="" alt="ETAPA 05" href="#" onclick="javascript:__IMAGEMAP_onClick(4);" />
</map>
<img name="ProyectoPanel11$usa_image" ID="ProyectoPanel11$usa_image" src="../../../Admin/ImagenSetForm.aspx?id=37&type=Proyecto" 
alt="" class="map maphilighted" width="585" height="542" border="0" usemap="#ProyectoPanel11$usa_image__MAP" />


   <table  id="Table1" border="0" cellspacing="0" cellpadding="0" width="1000px" style="background-color:White">
  <tr>
  <td colspan="2">
    

  <cc1:ImageMap ID="usa_image" runat="server" usemap="#usa"     /> 
  </td>
  
  </tr>
  <tr>
    <td valign="top" rowspan="3"  align="center"  valign="middle">

    
       
    </td>
    <td valign="top" width="300px" >
    
   </td>
  </tr>
  
  <tr>
    <td valign="top" width="200px">
         
        
        </td>
  </tr>
  
    <tr>
        <td valign="top" width="300px">
            
        </td>
    </tr>
  
</table>






    
       
    </td>
    <td valign="top" width="300px" >
    <asp:Panel ID="modeloPNL" runat="server" Height="200px" align="center">
        <asp:ImageMap   runat="server"  id="modeloIMG" border="0" />
        </asp:Panel>
   </td>
  </tr>
  
  <tr>
    <td valign="top" width="200px">
         <asp:Panel runat="server" ID="datosPNL">
            <table class="ui-accordion">
                <tr>
                    <td align="right" bgcolor="#FFCCFF" width="100px">
                        Tipo UI:</td>
                    <td>
                        <asp:Label ID="tipoUILBL" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFCCFF" width="100px">
                        Codigo:</td>
                    <td>
                       <b> <asp:Label ID="codigoLBL" runat="server"></asp:Label></b>
                        <input id="idUI" type="hidden" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFCCFF" width="100px">
                        Localizacion:</td>
                    <td>
                        <asp:Label ID="localizacionLBL" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFCCFF" width="100px">
                        Bloque/piso:</td>
                    <td>
                        <asp:Label ID="bloqueLBL" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFCCFF" width="100px">
                        Estado:</td>
                    <td>
                        <asp:Label ID="estadoLBL" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFCCFF" width="100px">
                        Modelo:</td>
                    <td>
                        <asp:Label ID="modeloLBL" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFCCFF" width="100px">
                        Area:</td>
                    <td>
                        <asp:Label ID="areaLBL" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFCCFF" width="100px">
                        Precio:</td>
                    <td>
                        <asp:Label ID="precioLBL" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        
        </td>
  </tr>
  
    <tr>
        <td valign="top" width="300px">
           <asp:Panel ID="botonesPNL" runat="server">
                <table>
                    <tr>
                        <td class=" ms-crm-Dialog-Footer-Right">
                            <asp:Button ID="proformarBTN" runat="server"   OnClientClick="return confirm('Desea generar una Proforma?')" 
                                CssClass="ms-crm-List-Header" Text="Generar Proforma" 
                                onclick="BTN_Click" />
                            &nbsp;
                            <asp:Button ID="ventaBTN" runat="server"  onclick="BTN_Click" OnClientClick="return confirm('Desea generar una Orden Venta?')" 
                                CssClass="ms-crm-List-Header" Text=" Generar OrdenVenta" />
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </td>
    </tr>
  
</table>









<%--</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="usa_image" />
</Triggers>

</asp:UpdatePanel>--%>

